<?php

/**
 * Created by PhpStorm.
 * User: koastal
 * Date: 2016/5/15
 * Time: 10:55
 */
require_once 'medoo.php';
require_once 'config.php';
class Model extends medoo
{
    private $default_db = array(
        // 必须配置项
        'database_type' => 'mysql',
        'database_name' => 'tuvtest',
        'server' => '47.103.195.239',
        'username' => 'root',
        'password' => 't6@uv99',
        'charset' => 'utf8',
    );
    public  function __construct($options=array())
    {
        $options = empty($options)? $this->default_db:$options;
        parent::__construct($options);
    }
}

